<include file="Public/min-header"/> <!--引入 js css img 文件-->
</head>
<body>
<!--导航  start //-->
<include file="Public/header"/>  <!--引入头部导航  //-->
<!--导航 End  //-->
<div id="main">
    <!--右边菜单-->
    <include file="Zmd/menu"/>
    <!--右边菜单End-->
    <style>
        ul, li { padding: 0px; margin: 0px; }
        li { list-style: none; }
        .box { width: 100%; height: 220px; /*border:1px solid red;*/ margin: 0 auto; }
        .box ul { background: #ddd; position: relative; float: left; }
        .box .tab1 { width: 150px; height: 155px; margin: 0 460px; }
        .box .tab2 { width: 150px; height: 150px; margin-left: 206px; margin-top: -35px; margin-right: 153px; }
        .box .tab3 { width: 150px; height: 150px; margin-left: 60px; margin-top: -75px; margin-right: 54px; }
        .box .tab4 { width: 131px; height: 150px; margin-left: 2px; }
        .box .line { width: 100%; height: 30px; float: left; }
        .line .x1 { margin: 0 auto; width: 48%; height: 2px; background: blue; }
        .line .y { width: 2px; height: 14px; float: left; background: blue; }
        .line .y1 { margin: 0 auto; width: 2px; height: 14px; background: blue; }
        .line .y2 { margin-left: 277px; margin-right: 230px; }
        .line .x2 { width: 25%; height: 2px; background: blue; float: left; margin-left: 131px; margin-right: 134px; }
        .line .y3 { width: 2px; height: 14px; background: blue; margin-left: 277px; margin-right: 230px; float: left; }
        .line .y4 { margin-left: 131px; margin-right: 131px; }
        .line .x3 { margin: 0 auto; width: 13%; height: 2px; background: blue; float: left; margin-left: 65px; margin-right: 61px; }
        .line .y5 { width: 2px; height: 14px; background: blue; margin-left: 131px; margin-right: 133px; float: left; }
        .line .y6 { margin-left: 64px; margin-right: 67px; }
        .box ul li { float: left; width: 45%; height: 20px; line-height: 20px; margin-left: 4px; }
        .box ul li span { color: red; font-size: 12px; }
        .box ul p { float: left; width: 2px; height: 20px; line-height: 20px; background: blue; }
        .prev { width: 25px; height: 40px; position: absolute; right: 0px; top: 0px; line-height: 40px; text-align: center; font-size: 16px; font-weight: bold; color: #fff; background: green; cursor: pointer; }
        .next { width: 20px; height: 20px; border: 1px solid green; position: absolute; right: 0px; bottom: 0px; font-weight: bold; color: #fff; background: purple; cursor: pointer; line-height: 20px; text-align: center; font-size: 15px; }
    </style>
    <div class="mainfr-box">
        <div class="place">
            <span>位置：</span>
            <ul class="placeul">
                <li><a href="__ROOT__/User/index.html">首页➤</a></li>
                <li><a href="__ROOT__/Business/arrangefor.html">安置网络列表</a></li>
            </ul>
            <ul class="placeula">
                <li><a href="javascript:location.reload()"><span class="placea"></span>刷新</a></li>
                <li><a href="javascript:history.go(-1)"><span class="placea"></span>返回上一页</a></li>
            </ul>
        </div>
        <div class="clr"></div>
        <div class="admin-content-body">
            <div class="am-cf am-padding am-padding-bottom-0">
                <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">{$zf_bu1}</strong></div>
                <!-- <div class="am-fr am-cf"><button class="am-btn am-btn-xs am-radius" onclick="javascript:history.back(-1);return false;">返回</button></div> -->
            </div>
            <div class="am-margin-bottom"></div>
            <div class="am-g search-form am-margin-bottom-xs">
                <div class="am-u-sm-12 am-u-md-4 am-form-inline am-text-left">

                    <form method="post" action="__CONTROLLER__/arrangefor">
                        <div class="am-input-group am-input-group-md">
                            <input type="text" name="user" class="dfinput" placeholder="会员编号"/>
                            <span class="am-input-group-btn">
                                <button class="scbtn1">&nbsp;&nbsp;搜索</button>
                            </span>
                        </div>
                    </form>
                    <div class="info_text">团队：<b class="text_red_line">{$old.td_man}</b> 人&nbsp;&nbsp;&nbsp;左区：<b
                            class="text_red_line"> {$old.l_man}</b> 人&nbsp;&nbsp;&nbsp;右区：<b class="text_red_line">
                        {$old.r_man}</b> 人&nbsp;&nbsp;&nbsp;直推：<b class="text_red_line"> {$old.zt_man}</b> 人
                    </div>
                </div>
            </div>
            <input type="hidden" name="user_id" value="{$user2_id}"/>
            <div class="main">
                <div class="box b1">
                    <ul class="tab1 t10"></ul>
                    <div class="line">
                        <p class="y1"></p>
                        <hr class="x1"/>
                        <p class="y y2"></p>
                        <p class="y y2 tz1"></p>
                    </div>
                </div>

                <div class="box b2">
                    <ul class="tab2 t20"></ul>
                    <ul class="tab2 t21 tz1"></ul>

                    <div class="line">
                        <p class="y3"></p>
                        <p class="y3 tz2"></p>
                        <hr class="x2"/>
                        <hr class="x2 tz3"/>
                        <p class="y y4"></p>
                        <p class="y y4"></p>
                        <p class="y y4 tz4" style="margin-left:134px;"></p>
                        <p class="y y4 tz5" style="margin-left:132px;"></p>
                    </div>
                </div>


                <div class="box b3">
                    <ul class="tab3 t40"></ul>
                    <ul class="tab3 t41"></ul>
                    <ul class="tab3 t42 tz2" style="margin-left:63px;"></ul>
                    <ul class="tab3 t43" style="margin-left:61px;"></ul>
                    <!--                    <div class="line">
                                            <p class="y5"></p><p class="y5"></p><p class="y5"></p><p class="y5"></p>
                                            <hr class="x3" /><hr class="x3" /><hr class="x3" /><hr class="x3" />
                                            <p class="y y6"></p><p class="y y6"></p><p class="y y6"></p><p class="y y6"></p>
                                            <p class="y y6"></p><p class="y y6"></p><p class="y y6"></p><p class="y y6"></p>
                                        </div>-->
                </div>


                <!--                 <div class="box b4">
                                    <ul class="tab4 t80"> </ul>
                                    <ul class="tab4 t81"></ul>
                                    <ul class="tab4 t82"></ul>
                                    <ul class="tab4 t83"></ul>
                                    <ul class="tab4 t84"></ul>
                                    <ul class="tab4 t85"></ul>
                                    <ul class="tab4 t86"> </ul>
                                    <ul class="tab4 t87"></ul>
                                </div>-->
            </div>
        </div>
    </div>
</div>
<script src="__PUBLIC__/js/jquery-1.8.3.min.js"></script>
<script>

    if ($('.t10').html() == false) {
        var account = $('input[name="user_id"]').val();

        $.get('__CONTROLLER__/network', {user: account}, function (data) {
            console.log(data);
            var obj = eval(data);
            // console.log(obj);
            $('.box ul').html('');
            for (var i in obj) {
                if (obj[i].username == null) {
                    obj[i].username = '';
                }
                if (obj[i].jhtime == null) {
                    obj[i].jhtime = '';
                }

                var tab = '<li><b></b><span>' + obj[i].account + '</span><div class="prev">上</div></li><p></p><li><b></b><span>' + obj[i].username + '</span></li><li><b></b><span>' + obj[i].grade_id + '</span></li><p></p><li><b></b><span>' + obj[i].activate + '</span></li><li style="width:100%;background:blue;height:1px;border:none;margin:0px;"></li><li style="width:100%;background:red;height:2px;border:none;margin-top:5px;margin-left:0px"></li><li><center><b>左区</b></center></li><p></p><li><center><b>右区</b></center></li><li style="width:100%;background:blue;height:1px;border:none;margin:0px;"></li><li><b>总:</b><span>' + obj[i].left_total + '</span></li><p></p><li><b></b><span>' + obj[i].right_total + '</span></li><li><b>结:</b><span>' + obj[i].prev_knot + '</span></li><p></p><li><b></b><span>' + obj[i].prev_knot + '</span></li><li><b>余:</b><span>' + obj[i].left_new + '</span></li><p></p><li><b></b><span>' + obj[i].right_new + '</span></li><li style="width:100%;background:blue;height:1px;border:none;margin:0px;"></li><li style="width:95%;margin:0px 2px;" class="down"><span>' + obj[i].jhtime + '</span></li><div class="next">下</div>';
                $('.t' + i).html(tab);
            }

            $('.box ul').each(function () {
                if ($(this).html() == '') {
                    var cn = $(this).attr('class');
                    var num = cn.substr(6, 2);
                    var nex = 0;
                    if (num % 2 == 0) {
                        nex = num + 1;
                    } else {
                        nex = num - 1;
                    }

                    var clas3 = '.t' + Math.floor(num / 2);
                    var pre = $(clas3).first().find('span').html();
                    var reg = '<a href="#" style="display:none">' + pre + '</a><h2 class="register" style="font-size:18px;font-weight:bold;background:purple;color:#fff;text-align:center;cursor:pointer;">注册会员</h2>'

                    if ($(clas3).html() != '' && $(clas3).html().substr(0, 2) != '<a') {

                        $(this).html(reg);

                    } else {
                        $(this).html('');
                        $('.t' + nex).html('');
                    }


                }
            });
        });

    }


    $('.next').live('click', function () {

        var account = $(this).parent().first().find('span').html();

        $.get('__CONTROLLER__/network', {user: account}, function (data) {
            var obj = eval(data);
            // console.log(data);
            $('.box ul').html('');
            for (var i in obj) {
                if (obj[i].username == null) {
                    obj[i].username = '';
                }
                if (obj[i].jhtime == null) {
                    obj[i].jhtime = '';
                }

                var tab = '<li><b></b><span>' + obj[i].account + '</span><div class="prev">上</div></li><p></p><li><b></b><span>' + obj[i].username + '</span></li><li><b></b><span>' + obj[i].grade_id + '</span></li><p></p><li><b></b><span>' + obj[i].activate + '</span></li><li style="width:100%;background:blue;height:1px;border:none;margin:0px;"></li><li style="width:100%;background:red;height:2px;border:none;margin-top:5px;margin-left:0px"></li><li><center><b>左区</b></center></li><p></p><li><center><b>右区</b></center></li><li style="width:100%;background:blue;height:1px;border:none;margin:0px;"></li><li><b>总:</b><span>' + obj[i].left_total + '</span></li><p></p><li><b></b><span>' + obj[i].right_total + '</span></li><li><b>结:</b><span>' + obj[i].prev_knot + '</span></li><p></p><li><b></b><span>' + obj[i].prev_knot + '</span></li><li><b>余:</b><span>' + obj[i].left_new + '</span></li><p></p><li><b></b><span>' + obj[i].right_new + '</span></li><li style="width:100%;background:blue;height:1px;border:none;margin:0px;"></li><li style="width:95%;margin:0px 2px;" class="down"><span>' + obj[i].jhtime + '</span></li><div class="next">下</div>';
                $('.t' + i).html(tab);
            }

            $('.box ul').each(function () {
                if ($(this).html() == '') {
                    var cn = $(this).attr('class');
                    var num = cn.substr(6, 2);
                    var nex = 0;
                    if (num % 2 == 0) {
                        nex = num + 1;
                    } else {
                        nex = num - 1;
                    }

                    var clas3 = '.t' + Math.floor(num / 2);
                    var pre = $(clas3).first().find('span').html();
                    var reg = '<a href="#" style="display:none">' + pre + '</a><h2 class="register" style="font-size:18px;font-weight:bold;background:purple;color:#fff;text-align:center;cursor:pointer;">注册会员</h2>'

                    if ($(clas3).html() != '' && $(clas3).html().substr(0, 2) != '<a') {

                        $(this).html(reg);

                    } else {
                        $(this).html('');
                        $('.t' + nex).html('');
                    }


                }
            });
        });

    });


    $('.prev').live('click', function () {

        var account = $(this).prev('span').html();
        if (account != '{$Think.session.user.account}') {
            $.get('__CONTROLLER__/yyy', {use: account}, function (data) {
                var obj = eval(data);
                $('.box ul').html('');
                for (var i in obj) {
                    if (obj[i].username == null) {
                        obj[i].username = '';
                    }
                    if (obj[i].jhtime == null) {
                        obj[i].jhtime = '';
                    }

                    var tab = '<li><b></b><span>' + obj[i].account + '</span><div class="prev">上</div></li><p></p><li><b></b><span>' + obj[i].username + '</span></li><li><b></b><span>' + obj[i].grade_id + '</span></li><p></p><li><b></b><span>' + obj[i].activate + '</span></li><li style="width:100%;background:blue;height:1px;border:none;margin:0px;"></li><li style="width:100%;background:red;height:2px;border:none;margin-top:5px;margin-left:0px"></li><li><center><b>左区</b></center></li><p></p><li><center><b>右区</b></center></li><li style="width:100%;background:blue;height:1px;border:none;margin:0px;"></li><li><b>总:</b><span>' + obj[i].left_total + '</span></li><p></p><li><b></b><span>' + obj[i].right_total + '</span></li><li><b>结:</b><span>' + obj[i].prev_knot + '</span></li><p></p><li><b></b><span>' + obj[i].prev_knot + '</span></li><li><b>余:</b><span>' + obj[i].left_new + '</span></li><p></p><li><b></b><span>' + obj[i].right_new + '</span></li><li style="width:100%;background:blue;height:1px;border:none;margin:0px;"></li><li style="width:95%;margin:0px 2px;" class="down"><span>' + obj[i].jhtime + '</span></li><div class="next">下</div>';
                    $('.t' + i).html(tab);

                }

                $('.box ul').each(function () {
                    if ($(this).html() == '') {
                        var cn = $(this).attr('class');
                        var num = cn.substr(6, 2);
                        var nex = 0;
                        if (num % 2 == 0) {
                            nex = num + 1;
                        } else {
                            nex = num - 1;
                        }

                        var clas3 = '.t' + Math.floor(num / 2);
                        var pre = $(clas3).first().find('span').html();
                        var reg = '<a href="#" style="display:none">' + pre + '</a><h2 class="register" style="font-size:18px;font-weight:bold;background:purple;color:#fff;text-align:center;cursor:pointer;">注册会员</h2>'

                        if ($(clas3).html() != '' && $(clas3).html().substr(0, 2) != '<a') {

                            $(this).html(reg);

                        } else {
                            $(this).html('');
                            $('.t' + nex).html('');
                        }

                    }
                });
            });
        }

    });

    $('.register').live('click', function () {
        var jdr = $(this).prev('a').html();
        var cn = $(this).parent().attr('class');
        var num = cn.substr(6, 2);
        var sb = 0;
        if (num % 2 == 0) {
            sb = 1;
        } else {
            sb = 2;
        }

        window.location.href = '__MODULE__/index/reg?tjr_accname=<?php echo encryptzf($_SESSION['user']['account'],'E','zfuwl');?>&jdr=' + jdr + '&sb=' + sb;
    });
</script>
<!--foot-->
<div class="clr"></div>
<!--footer start //-->
<include file="Public/footer"/>   <!--引入底部 //-->
<!--footer  end //-->
</body>
</html>